package com.hub.realtime.common.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.hub.realtime.common.enums.JobRunState;
import lombok.Data;

@Data
public class JobInfo {
    @JSONField(name = "jid")
    private String jid=" ";
    @JSONField(name = "name")
    private String name;
    @JSONField(name = "state")
    private String state= JobRunState.ADDED.name();
    @JSONField(name = "start-time")
    private Long startTime=-1L;
    @JSONField(name = "end-time")
    private Long endTime=-1L;
    @JSONField(name = "duration")
    private Long duration;
    @JSONField(name = "last-modification")
    private Long lastModification;
    private TaskInfo tasks;
}